package com.wufeng.spring02_ioc;


import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext springContext = new AnnotationConfigApplicationContext(SpringConfig.class);
        UseFunctionService useFunctionService = springContext.getBean(UseFunctionService.class);
        useFunctionService.sayHello();
        springContext.close();
    }
}
